<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title><?= $detail ? $detail["SA_SaNum"] : "" ?></title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            margin: 16px;
            border: 2px solid #000;
            display: flex;
            width: 96%;
        }

        table {
            border-collapse: collapse;
            table-layout：fixed
        }

        td {
            border: 1px solid #000;
            padding: 8px;
            word-wrap: break-word;
            word-break: break-all;
            text-align: center;
        }
    </style>
</head>

<body>
<div style="width:100%">

    <table style="width:100%">
        <tr>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
            <th width="5%">
            </th>
        </tr>
        <tr>
            <td colspan="3"><b>事故号</b></td>
            <td colspan="3"><span
                    style="color: #FF0000;font-weight: bold;"> <?= $detail ? $detail["SA_SaNum"] : "" ?></span></td>
            <td colspan="3"><b>处理警员</b></td>
            <td colspan="4"><?= $detail && $detail["SA_Hps"] ? $detail["SA_Hps"] : "" ?></td>
            <td colspan="3"><b>处理单位</b></td>
            <td colspan="4"><?= $detail && $detail["SA_Dtm"] ? $detail["SA_Dtm"] : "" ?></td>
        </tr>
        <tr>
            <td colspan="3"><b>出险日期</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_HTime"] : "" ?></td>
            <td colspan="3"><b>事故地点</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_HAdrs"] : "" ?></td>
        </tr>
        <tr>
            <td colspan="3"><b>出险天气</b></td>
            <td colspan="7"><?= $detail && $detail["SA_HWth"] ? $detail["SA_HWth"] : "" ?></td>
            <td colspan="3"><b>事故形态</b></td>
            <td colspan="7"><?= $detail && $detail["SA_St"] ? $detail["SA_St"] : "" ?></td>
        </tr>
        <tr style="text-align:center">
            <td colspan="20" style="background:#CCC;"><b>事故当事人情况<b></td>
        </tr>

        <tr>
            <td colspan="3"><b>甲姓名</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgName"] : "" ?></td>
            <td colspan="3"><b>联系电话</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgMobile"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>强制保险单号</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_AssNum"] : "" ?></td>
            <td colspan="3"><b>承保公司名称</b></td>
            <td colspan="7"><?= $detail && $detail["SA_AssCompany"] ? $detail["SA_AssCompany"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>驾驶证号</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_DirNum"] : "" ?></td>
            <td colspan="3"><b>车辆类型</b></td>
            <td colspan="7"><?= $detail && $detail["SA_CarType"] ? $detail["SA_CarType"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>车辆牌号</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_CarNum"] : "" ?></td>
            <td colspan="3"><b>碰撞部位</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_Cs"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>事故责任</b></td>
            <td colspan="17" style="color: blue"><?= $detail && $detail["SA_Rp"] ? $detail["SA_Rp"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="20" style="background:#CCC;"></td>
        </tr>


        <tr>
            <td colspan="3"><b>乙姓名</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgName2"] : "" ?></td>
            <td colspan="3"><b>联系电话</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgMobile2"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>强制保险单号</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_AssNum2"] : "" ?></td>
            <td colspan="3"><b>承保公司名称</b></td>
            <td colspan="7"><?= $detail && $detail["SA_AssCompany2"] ? $detail["SA_AssCompany2"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>驾驶证号</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_DirNum2"] : "" ?></td>
            <td colspan="3"><b>车辆类型</b></td>
            <td colspan="7"> <?= $detail && $detail["SA_CarType2"] ? $detail["SA_CarType2"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>车辆牌号</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_CarNum2"] : "" ?>  </td>
            <td colspan="3"><b>碰撞部位</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_Cs2"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>事故责任</b></td>
            <td colspan="17" style="color: blue"> <?= $detail && $detail["SA_Rp2"] ? $detail["SA_Rp2"] : "" ?> </td>
        </tr>


        <tr>
            <td colspan="20" style="background:#CCC;"></td>
        </tr>


        <tr>
            <td colspan="3"><b>丙姓名</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgName3"] : "" ?>  </td>
            <td colspan="3"><b>联系电话</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_LgMobile3"] : "" ?> </td>
        </tr>

        <tr>
            <td colspan="3"><b>强制保险单号</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_AssNum3"] : "" ?> </td>
            <td colspan="3"><b>承保公司名称</b></td>
            <td colspan="7"><?= $detail && $detail["SA_AssCompany3"] ? $detail["SA_AssCompany3"] : "" ?> </td>
        </tr>

        <tr>
            <td colspan="3"><b>驾驶证号</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_DirNum3"] : "" ?> </td>
            <td colspan="3"><b>车辆类型</b></td>
            <td colspan="7"> <?= $detail && $detail["SA_CarType3"] ? $detail["SA_CarType3"] : "" ?></td>
        </tr>

        <tr>
            <td colspan="3"><b>车辆牌号</b></td>
            <td colspan="7"> <?= $detail ? $detail["SA_CarNum3"] : "" ?> </td>
            <td colspan="3"><b>碰撞部位</b></td>
            <td colspan="7"><?= $detail ? $detail["SA_Cs3"] : "" ?> </td>
        </tr>

        <tr>
            <td colspan="3"><b>事故责任</b></td>
            <td colspan="17" style="color: blue"><?= $detail && $detail["SA_Rp3"] ? $detail["SA_Rp3"] : "" ?>  </td>
        </tr>

        <!--
                <tr>
                    <td colspan="20" style="background:#CCC;"></td>
                </tr>
                <tr>
                    <td colspan="3">事故经过</td>
                    <td colspan="17"></td>
                </tr>
                -->
</div>


</body>

</html>
	
	